﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true"
    CodeBehind="oyzxList.aspx.cs" Inherits="ZF.WS.Admin.service.oyzxList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="tabContainer">
        <zf:GridView ID="gvList" runat="server" OnSorting="gvListSorting" OnPageIndexChanging="gvListPageChanging">
            <Columns>
                <zf:TemplateField IsKeyField="true" DefaultSortField="true" DefaultSortDirection="Descending"
                    SortExpression="Service.ServiceId">
                    <ItemTemplate>
                        <asp:Label runat="server" ID="KeyLabel" Text='<%# Eval("Service.ServiceId")%>'></asp:Label>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField IsCheckField="true">
                </zf:TemplateField>
                <zf:TemplateField IsSerialNoField="true" Visible="false">
                </zf:TemplateField>
                <zf:TemplateField HeaderText="装修内容">
                    <ItemTemplate>
                        <%# Eval("Model.Content")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="预算金额（万元）">
                    <ItemTemplate>
                        <%# Eval("Model.Price") %>
                    </ItemTemplate>
                </zf:TemplateField>
            
                <zf:TemplateField HeaderText="联系人">
                    <ItemTemplate>
                        <%# Eval("Service.Contact")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="电话">
                    <ItemTemplate>
                        <%# Eval("Service.Tel")%>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="递交时间" SortExpression="Service.AddTime">
                    <ItemTemplate>
                        <%# ((DateTime )Eval("Service.AddTime")).ToShortDateString() %>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="状态" SortExpression="Service.IsAcc">
                    <ItemTemplate>
                        <span style="<%#((bool)Eval("Service.IsAcc"))?"color:#339900": "color:#f00" %>">
                            <%#((bool)Eval("Service.IsAcc"))?"已确认":"未确认" %>
                        </span>
                    </ItemTemplate>
                </zf:TemplateField>
                <zf:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <a href='<%=ManagePage %>?ot=Edit&id=<%# Eval("Service.ServiceId")%>'>详细</a> |
                        <zf:LinkButton ID="LinkButton1" runat="server" OnClick="Delete" CommandArgument='<%#Eval("Service.ServiceId") %>'
                            OnClientClick="return confirm('是否确定要删除此记录');">删除</zf:LinkButton>
                    </ItemTemplate>
                </zf:TemplateField>
            </Columns>
        </zf:GridView>
    </div>
 

</asp:Content>
